package GUI;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JCheckBox;
import javax.swing.JLabel;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.SystemColor;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JEditorPane;
import javax.swing.AbstractAction;
import javax.swing.Action;
import java.awt.Panel;
import java.awt.Label;
import java.awt.Rectangle;
import com.jgoodies.forms.factories.DefaultComponentFactory;
import java.awt.Font;
import javax.swing.JTextPane;
import javax.swing.JTextField;

/**
 * This class creates instance of IP Panel	
 * to display when needed
 * @author natali
 *
 */
public class IP extends JPanel{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private JButton btnSubmit;
	private JButton btnNewButton_1;
	
	private JTextField textField;
	private JButton btnSubmit_1;
	private JButton cancelButton_1;
	public IP() {
		setLayout(null);
		btnSubmit = new JButton() ;
		btnNewButton_1 = new JButton() ;
		JLabel lblNewLabel = new JLabel("");
		lblNewLabel.setIcon(new ImageIcon(IP.class.getResource("/Picture/App-internet-connection-tools-icon.png")));
		lblNewLabel.setBounds(10, 11, 149, 134);
		add(lblNewLabel);
		
		JLabel lblNewJgoodiesTitle = DefaultComponentFactory.getInstance().createTitle("IP-Connection");
		lblNewJgoodiesTitle.setForeground(SystemColor.textHighlight);
		lblNewJgoodiesTitle.setFont(new Font("Arial", Font.BOLD | Font.ITALIC, 17));
		lblNewJgoodiesTitle.setBounds(182, 11, 159, 47);
		add(lblNewJgoodiesTitle);
		
		JLabel lblNewJgoodiesLabel = DefaultComponentFactory.getInstance().createLabel("Enter IP :");
		lblNewJgoodiesLabel.setFont(new Font("Arial", Font.BOLD, 12));
		lblNewJgoodiesLabel.setBounds(101, 134, 76, 32);
		add(lblNewJgoodiesLabel);
		
		textField = new JTextField();
		textField.setBounds(182, 129, 175, 32);
		add(textField);
		textField.setColumns(10);
		
		cancelButton_1 = new JButton("Cancel");
		cancelButton_1.setIcon(new ImageIcon(IP.class.getResource("/Picture/Button-Close-icon.png")));
		cancelButton_1.setBounds(18, 278, 141, 47);
		add(cancelButton_1);
		
		btnSubmit_1 = new JButton("Submit");
		btnSubmit_1.setIcon(new ImageIcon(IP.class.getResource("/Picture/Ok-icon.png")));
		btnSubmit_1.setBounds(324, 278, 141, 47);
		add(btnSubmit_1);
	}
	public JButton getBtnSubmit() {
		return btnSubmit_1;
	}
	public void setBtnSubmit(JButton btnSubmit) {
		this.btnSubmit_1 = btnSubmit;
	}
	public JButton getBtnNewButton_1() {
		return btnNewButton_1;
	}
	public void setBtnNewButton_1(JButton btnNewButton_1) {
		this.btnNewButton_1 = btnNewButton_1;
	}
	public JTextField getTextField() {
		return textField;
	}
	public void setTextField(JTextField textField) {
		this.textField = textField;
	}
	public JButton getCancelButton_1() {
		return cancelButton_1;
	}
	public void setCancelButton_1(JButton cancelButton_1) {
		this.cancelButton_1 = cancelButton_1;
	}
}